import request from '@/utils/request';

const prefix = '/apworkshop';

export async function getModelVersionList(data,id) {
  return request(`${prefix}/api/v1/studioModelVersionsByModel/${id}`, {
    method: 'GET',
    params: data,
  });
}

export async function uploadModel(data) {
  return request(`${prefix}/api/v1/studioModelPack`, {
    method: 'POST',
    data: data,
  });
}
export async function tets(data,) {
  return request(`${prefix}/api/v1/studioOverview`, {
    method: 'GET',
    params: data,
  });
}

export async function getPvc(id) {
  return request(`/file-server/api/v1/files/info/${id}`, {
    method: 'GET',
  });
}

export async function deleteFile(id){
  return request(`/file-server/api/v1/files/${id}`, {
    method: 'DELETE',
  });
}
